package cn.prophet.mapper;

import cn.prophet.bean.GameOrder;
import cn.prophet.bean.GameOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GameOrderMapper {
    long countByExample(GameOrderExample example);

    int deleteByExample(GameOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(GameOrder record);

    int insertSelective(GameOrder record);

    List<GameOrder> selectByExample(GameOrderExample example);

    GameOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") GameOrder record, @Param("example") GameOrderExample example);

    int updateByExample(@Param("record") GameOrder record, @Param("example") GameOrderExample example);

    int updateByPrimaryKeySelective(GameOrder record);

    int updateByPrimaryKey(GameOrder record);

    long selectUnReadNum(@Param("userId") Long userId,@Param("status") byte status,@Param("recordId1")String recordId,@Param("recordId2") String recordId2,@Param("recordId3") String recordId3);


    List<GameOrder> getLastTwentyOrders(@Param("userId") Long userId,@Param("recordId1") String recordId1,@Param("recordId2") String recordId2,@Param("recordId3") String recordId3);
}